package org.example.school.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 学生作业提交记录表
 * </p>
 *
 * @author author
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("assignment_submissions")
public class AssignmentSubmissions implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 作业ID
     */
    private Long assignmentId;

    /**
     * 提交学生ID
     */
    private Long studentId;

    /**
     * 提交内容（文字）
     */
    private String content;

    /**
     * 提交附件URL
     */
    private String attachmentUrl;

    /**
     * 提交时间
     */
    private LocalDateTime submittedAt;

    /**
     * 提交状态 (1:未完成, 2:已提交, 3:已批改, 4:已退回)
     */
    private Integer status;

    /**
     * 教师反馈/评语
     */
    private String feedback;

    /**
     * 作业等级或分数
     */
    private String grade;


}